﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManage, App_Web_themeuser.aspx.fdf7a39c" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>    <link href="../css/Admin_Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server"><br />
    <div style="border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
      
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;  font-size:12px;">
                        <tr>
                            <td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px; text-align: left;">
                                &nbsp; 发送主题用户列表</td>
                        </tr>
        <tr><td style="height: 50px">&nbsp;&nbsp;&nbsp;&nbsp;登录名：<asp:TextBox ID="loginnametxt" runat="server"></asp:TextBox>
        &nbsp; &nbsp; &nbsp;&nbsp; 姓&nbsp;&nbsp;&nbsp;&nbsp;名：<asp:TextBox ID="realnametxt" runat="server"></asp:TextBox>
        &nbsp; &nbsp; &nbsp; 地&nbsp;&nbsp;&nbsp;&nbsp;址：<asp:TextBox ID="addresstxt" runat="server"></asp:TextBox>
        
        </td></tr>
        <tr><td style="height: 50px">&nbsp;&nbsp;&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;&nbsp;话：<asp:TextBox ID="teltxt" runat="server"></asp:TextBox>&nbsp;&nbsp;
        &nbsp;&nbsp; &nbsp;&nbsp; 
        <asp:Button ID="searchbtn" runat="server" Text="搜索" OnClick="searchbtn_Click" />
       
      
        </td></tr>
        <tr><td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px; text-align: left; border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
        &nbsp;
        </td></tr>
        
        <tr><td>
        <asp:GridView ID="UserListGv" runat="server" AutoGenerateColumns="False" Width="100%" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"  >
        <Columns>
              <asp:TemplateField HeaderText="登录名">
              <ItemTemplate>
              
          <a href='Admin_UserShow.aspx?id=<%#Eval("Id")%>'> <%#Eval("LoginName")%></a>  
              </ItemTemplate>
              </asp:TemplateField>
                <asp:BoundField HeaderText="姓名" DataField="TrueName" />
            <asp:TemplateField HeaderText="性别">
             
                <ItemTemplate>
                    <%#Convert.ToBoolean(Eval("Sex"))?"男":"女"  %>
                </ItemTemplate>
            </asp:TemplateField>
                <asp:BoundField HeaderText="市"  DataField="City" />
                <asp:BoundField HeaderText="地址"  DataField="Address" />
                <asp:BoundField HeaderText="邮箱" DataField="Email" />
                <asp:BoundField HeaderText="电话" DataField="Tel" />
                <asp:BoundField HeaderText="手机" DataField="Mobile" />
            <asp:TemplateField HeaderText="用户组">
            
            <ItemTemplate>
            <%# Convert.ToBoolean(Eval("UserType")) ? "<span style='color:red'>管理员</span>" : "<span style='color:#696969'>普通用户</span>"%>
           
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
            <ItemTemplate>
            <%#  Convert.ToBoolean(Eval("UserState"))?"正常":"<span style='color:red'>被锁定</span>" %>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
            <ItemTemplate>
 
            <a href='AddTheme.aspx?Id=<%#Eval("Id")%>&&Uname=<%#Eval("LoginName")%>'>发表主题</a>
            </ItemTemplate>
                
            </asp:TemplateField>
        </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <RowStyle ForeColor="Black" CssClass="showlist1" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle CssClass="showlist2" />
        </asp:GridView>
      &nbsp;</td></tr>
      </table>
       <div class="viciao" style=" text-align:center;">
       <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" NumericButtonCount="10" OnPageChanged="NewsPage_PageChanged" PageSize="20" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" ShowCustomInfoSection="Left" CssClass="gd" CurrentPageButtonStyle="" Direction="LeftToRight" Height="35px" NextPageText="Next > " PageIndexBoxStyle="height: 30px;" PrevPageText="< Prev" SubmitButtonStyle="" SubmitButtonText="Go" Wrap="False"  >
    </webdiyer:AspNetPager></div>
    </div>
    </form>
</body>
</html>
